package com.doujiang.sys.utils;

import java.util.Map;

/**
 * @Author：豆浆
 * @name :DataGridView
 * @Date：2023/12/19 15:12
 */
public class DataGridView {
    /**
     * 封装layui数据表格的数据对象
     */
    private Integer code=0;//编码
    private String msg="";
    private Long count;//数量
    private Object data;

    public DataGridView(Map<String, Object> map) {
    }

    public DataGridView(Integer code) {
        this.code = code;
    }

    public DataGridView(Long count, Object data) {
        this.count = count;
        this.data = data;
    }

    public DataGridView(Integer code, String msg, Long count, Object data) {
        this.code = code;
        this.msg = msg;
        this.count = count;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
